﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BigLotterySyndicate.Classes;

namespace BigLotterySyndicate.Secured.Users
{
    public partial class Default : BasePage
    {
        public int? UserId
        {
            get { return Request["uId"] != null ? Int32.Parse(Request["uId"].ToString()) : default(int?); }
        }


        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Visible)
                return;

            this.MasterPage.SetTopMenuTab(global::BigLotterySyndicate.Secured.Controls.TopNav.AdminNavSection.Users);

            if (UserId.HasValue)
                this.MultiViewUsers.SetActiveView(this.ViewDetails);
            else
                this.MultiViewUsers.SetActiveView(this.ViewList);
        }
    }
}